/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.customer.exercises.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 客户练习表Entity
 * @author zpp
 * @version 2020-01-30
 */
@Table(name="t_customer_exercises", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="customer_id", attrName="customerId", label="客户主键"),
		@Column(name="question_id", attrName="questionId", label="问题主键"),
		@Column(name="answer", attrName="answer", label="客户答案"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="course_hourse", attrName="courseHourse", label="课时信息"),
		@Column(name="course", attrName="course", label="课程信息"),
		@Column(name="correct", attrName="correct", label="正确标识"),
	}, orderBy="a.update_date DESC"
)
public class TcustomerExercises extends DataEntity<TcustomerExercises> {
	
	private static final long serialVersionUID = 1L;
	private String customerId;		// 客户主键
	private String questionId;		// 问题主键
	private String answer;		// 客户答案
	private String courseHourse;		// 课时信息
	private String course;		// 课程信息
	private Integer correct;		// 正确标识
	
	public TcustomerExercises() {
		this(null);
	}

	public TcustomerExercises(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="客户主键长度不能超过 50 个字符")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=50, message="问题主键长度不能超过 50 个字符")
	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	
	@Length(min=0, max=200, message="客户答案长度不能超过 200 个字符")
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	@Length(min=0, max=50, message="课时信息长度不能超过 50 个字符")
	public String getCourseHourse() {
		return courseHourse;
	}

	public void setCourseHourse(String courseHourse) {
		this.courseHourse = courseHourse;
	}
	
	@Length(min=0, max=255, message="课程信息长度不能超过 255 个字符")
	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}
	
	public Integer getCorrect() {
		return correct;
	}

	public void setCorrect(Integer correct) {
		this.correct = correct;
	}
	
}